class CreateLastfmDatas < ActiveRecord::Migration
  def self.up
    create_table :lastfm_datas do |t|
      t.column :crawl_id, :integer
      t.column :full_name, :string
      t.column :first_name, :string
      t.column :last_name, :string
      t.column :gender, :string
      t.column :locale_country, :string #ISO Country Code notaion
      t.column :age, :integer
      #t.timestamps
      t.column :last_update, :datetime
    end
    add_index :lastfm_datas, :crawl_id
  end
  
  def self.down
    remove_index :lastfm_datas, :crawl_id
    drop_table :lastfm_datas
  end
end
